﻿// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// This file is part of CodingEditor.
// Note:	This project is derived from Peter Project
//			(hosted on sourceforge and codeplex)
//
// Copyright (c) 2008-2009, CE Team
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace CE.Classes
{
    using System.IO;
	using System.Windows.Forms;

	/// <summary>
	/// Contains some constants used in this project
	/// </summary>
	public static class Constants
	{
		#region Fields

        private static readonly string AppFolder = Path.GetDirectoryName(Application.ExecutablePath);
		public static readonly string ConfigFile = AppFolder + "\\Misc\\config.xml";
		public const string ConfigFileNotFound = "Settings file is not found(config.xml)!";
		public const string CsNamespaceFile = "csNamespace.dat";
		public const string DockConfigFile = "DockConfig.dat";
		public const string DummyFileName = "edited.cs"; // used by code completion
		public const string FeatureNotImplemented = "This feature is still not implemented[:(]";
		public const string LicenseFile = "Misc\\COPYING.txt";
		public static readonly string PluginFolder = AppFolder + "\\Plugins\\";
		public const string ProjectPage =
		        "http://sourceforge.net/projects/codingeditor/";
		public const string ProjectFileFilter = "CodingEditor Project File (*.ceproj)|*.ceproj";
		public const string ReportBugLink =
		        "http://sourceforge.net/apps/trac/codingeditor/newticket?type=defect";
		public const string RequestFeatureLink =
		        "http://sourceforge.net/apps/trac/codingeditor/newticket?type=task";
		public const string SyntaxFilesFolder = "SyntaxFiles\\";
		public const string ProgramName = "CodingEditor";
		public const string SyntaxFileLoadError = "Unable to load syntax files";
		public const string TextEditorNotActive = "The active tab is not the editor tab.\n" +
		                                          "In order to run, you need to activate the editor tab and click the run button.";
		public const string CreditsFile = "Misc\\credits.rtf";
		public const string GetLatestVersionFileUrl = "http://codingeditor.sourceforge.net/GetLatestVersion.xml";
		public const string LatestVersionFileRetrieveError = "Unable to retrieve the latest version information from the project host server. Please manually check the site or retry later.";

        public const string AboutImage = "Misc\\Images\\about.png";
        public const string SplashImage = "Misc\\Images\\splash.png";

		public const int W_COPYDATA = 0x4A;

		#endregion Fields
	}
}